import request from '@/utils/request'
//订单列表
export function getOrderList(params: any) {
    return request.get({ url: '/admin.auth.user/userOrderList', params })
}




//配送
export function delivery(params: any) {
    return request.post({ url: '/order.order/delivery', params })
}
// 收货
export function confirmReceipt(params: any) {
    return request.post({ url: '/order.order/confirmReceipt', params })
}
// 收货
export function confirmPickup(params: any) {
    return request.post({ url: '/order.order/confirmPickup', params })
}
// 取消订单
export function cancelorder(params: any) {
    return request.post({ url: '/order.order/cancel', params })
}
// 小票打印
export function printOrder(params: any) {
    return request.post({ url: '/order.order/print', params })
}
//订单详情
export function orderdetail(params: any) {
    return request.get({ url: '/order.order/detail', params })
}
//备注
export function orderRemark(params: any) {
    return request.post({ url: '/order.order/orderRemark', params })
}
//订单售后
export function aftersaleLists(params: any) {
    return request.get({ url: '/after.after_sale/lists', params })
}
export function aftersaleDetial(params: any) {
    return request.get({ url: '/after.after_sale/detail', params })
}
export function aftersaleagree(params: any) {
    return request.post({ url: '/after.after_sale/agree', params })
}
export function aftersaleRefuse(params: any) {
    return request.post({ url: '/after.after_sale/refuse', params })
}
export function aftersalerefund(params: any) {
    return request.post({ url: '/after.after_sale/refund', params })
}

// 获取订单分页列表
export function getOrderPageList(params: any) {
    return request.get({ url: '/admin.shop.order/getOrderPageList', params })
}
// 获取获取订单详情
export function getOrderDetail(params: any) {
    return request.post({ url: '/admin.shop.order/detail', params })
}

// 手动补单
export function replenish_order(params: any) {
    return request.post({ url: '/admin.shop.order/replenish_order', params })
}

// 一键核销(商品编号版)
export function sucall_order(params: any) {
    return request.post({ url: '/admin.shop.order/sucall_order', params })
}

// 一键核销(勾选版)
export function sucall_order_un(params: any) {
    return request.post({ url: '/admin.shop.order/sucall', params })
}

// 一键签收(商品编号版)
export function for_order(params: any) {
    return request.post({ url: '/admin.shop.order/for_order', params })
}

// 一键签收(勾选版)
export function for_order_un(params: any) {
    return request.post({ url: '/admin.shop.order/for', params })
}

// 一键发货(商品编号版)
export function deliver_order(params: any) {
    return request.post({ url: '/admin.shop.order/deliver_order', params })
}

// 一键发货(勾选版)
export function deliver_order_un(params: any) {
    return request.post({ url: '/admin.shop.order/pick', params })
}

// 单据凭证支付审核
export function audit(params: any) {
    return request.post({ url: '/admin.shop.order/audit', params })
}

// 取消未支付的订单
export function cancel(params: any) {
    return request.post({ url: '/admin.shop.order/cancel', params })
}

// 确认收货
export function confirm(params: any) {
    return request.post({ url: '/admin.shop.order/confirm', params })
}

// 订单核销
export function suc(params: any) {
    return request.post({ url: '/admin.shop.order/suc', params })
}

// 退款
export function refund(params: any) {
    return request.post({ url: '/admin.shop.order/refund', params })
}

// 手动退款
export function hand_refund(params: any) {
    return request.post({ url: '/admin.shop.order/hand_refund', params })
}

// 积分退款
export function red_refund(params: any) {
    return request.post({ url: '/admin.shop.order/red_refund', params })
}

// 订单备注
export function remark(params: any) {
    return request.post({ url: '/admin.shop.order/remark', params })
}

// 获取发货分页订单列表
export function getDeliveryOrderPageList(params: any) {
    return request.post({ url: '/admin.shop.delivery_order/getDeliveryOrderPageList', params })
}

// 取消订单
export function sendOutCancel(params: any) {
    return request.post({ url: '/admin.shop.delivery_order/cancel', params })
}

// 获取配送方式
export function getDeliveryMethodList(params: any) {
    return request.post({ url: '/admin.shop.delivery_order/getDeliveryMethodList', params })
}

// 填写发货-保存
export function sendOutTruck(params: any) {
    return request.post({ url: '/admin.shop.delivery_order/truck', params })
}

// 快递追踪查询
export function expressQuery(params: any) {
    return request.post({ url: '/admin.shop.delivery_order/query', params })
}

// 订单导入退款列表
export function refundList(params: any) {
    return request.get({ url: '/admin.shop.lead_red/list', params })
}

// 订单导入退款上传文件
export function refundImport(params: any) {
    return request.post({ url: '/admin.shop.lead_red/import', params })
}

// 订单导入撤销
export function refundRemove(params: any) {
    return request.post({ url: '/admin.shop.lead_red/remove', params })
}
